<?php
namespace app\common\exception;
use think\exception\Handle;

class CraspHandle extends Handle{
	
	public function render(\Exception $e){
		if(config('app.app_debug')){
			return parent::render($e);
		}else{
			header('Location:'.url('@index/publicot/haserror'));
		}
	}
}
